package com.cskaoyan.market.db.vo;

import com.cskaoyan.market.admin.service.impl.MarketCouponServiceImpl;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/admin/stat/order")
public class AdminStatOrder extends HttpServlet{
    MarketCouponServiceImpl couponService = new MarketCouponServiceImpl();
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        //首先进行方法的分发
        String requestURI = req.getRequestURI();
        //将请求地址中/admin/region/去掉，只保留最后一部分
        String op = requestURI.replace(req.getContextPath() + "/admin/stat/", "");
        if ("order".equals(op)) {
            order(req, resp);
        }
//        if ("listuser".equals(op)) {
//            listUser(req, resp);
//        }
//        if ("read".equals(op)) {
//            doRead(req, resp);
//        }
    }

    private void order(HttpServletRequest req, HttpServletResponse resp) {

    }
}
